Skip to content

Conversation

estebank
Copy link
Contributor

@estebank estebank commented Apr 4, 2017

error: no method named `dog_age` found for type `animal::Dog` in the current scope
  --> $DIR/private-field.rs:26:23
   |
26 |     let dog_age = dog.dog_age();
   |                       ^^^^^^^ private field, not a method

Fix #27654.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@arielb1
Copy link
Contributor

arielb1 commented Apr 4, 2017

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 4, 2017

📌 Commit 3409f8d has been approved by arielb1

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 4, 2017
Do not recommend private fields called as method

```rust
error: no method named `dog_age` found for type `animal::Dog` in the current scope
  --> $DIR/private-field.rs:26:23
   |
26 |     let dog_age = dog.dog_age();
   |                       ^^^^^^^ private field, not a method
```
Fix rust-lang#27654.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 5, 2017
Do not recommend private fields called as method

```rust
error: no method named `dog_age` found for type `animal::Dog` in the current scope
  --> $DIR/private-field.rs:26:23
   |
26 |     let dog_age = dog.dog_age();
   |                       ^^^^^^^ private field, not a method
```
Fix rust-lang#27654.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 5, 2017
Do not recommend private fields called as method

```rust
error: no method named `dog_age` found for type `animal::Dog` in the current scope
  --> $DIR/private-field.rs:26:23
   |
26 |     let dog_age = dog.dog_age();
   |                       ^^^^^^^ private field, not a method
```
Fix rust-lang#27654.
bors added a commit that referenced this pull request Apr 5, 2017
@bors bors merged commit 3409f8d into rust-lang:master Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants